// 本地存储用户信息的key
const user_info_key = 'user_info_key';
// 本地存储商户信息的key
const store_info_key = 'store_info_key';
// 本地存储用户位置的key
const user_location_key = 'location_info_key';
const area_code_key = 'area_code_key';
const area_name_key = 'area_name_key';

// 腾讯地图key
const qq_map_auth_key = 'IKLBZ-ZX26W-6I6RY-3WNJK-FPHVT-JDFBT';
// 视频号id
const sph_id = 'sphwK1NoDS881bb';

// 正式地址
const app_host = 'https://api.jhcqgl.cn/api';
// UAT环境
// const app_host = "https://api.jhcqgl.cn/uat";
// 测试域名地址
// const app_host = "https://eapi.zhejiangqinghai.com:54010/ruzhoutest119"
// 内部测试环境
// const app_host = "http://10.11.4.200:11930"
// 测试ip地址
// const app_host = "http://10.11.4.200:11930"

// 身份证正则
const idCardReg = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
// 车牌正则
const carNumReg = /^[a-zA-Z]{2}\d*$/;
// 汝州车牌正则
const ruzhouNumReg = /^汝州A[A-Z0-9]{6}$/;
// 手机号正则
const phoneNumReg = /^1[3456789]\d{9}$/;

// 防抖
const debounceTime = 500;

// 消费模板id
const notify_template_consumption = 'tkRlwLj-2gX10XVtP7cpNz_STFLAyVmPl5DlbD7R4Do';
// 充值模板id
const notify_template_recharge = '1sFA1n5WUyQrqi0dJgKCjMHV345N-5gRpK6XUwV2yho';
const gradeTypes = [
    {
        id: 0,
        label: '经济型'
    },
    {
        id: 1,
        label: '舒适型'
    },
    {
        id: 2,
        label: '高档型'
    },
    {
        id: 3,
        label: '豪华型'
    }
];
const gradePrices = [
    {
        min: 0,
        max: 100,
        label: '￥100以下'
    },
    {
        min: 100,
        max: 200,
        label: '￥100-200'
    },
    {
        min: 200,
        max: 300,
        label: '￥200-300'
    },
    {
        min: 300,
        max: 400,
        label: '￥300-400'
    },
    {
        min: 400,
        max: 600,
        label: '￥400-600'
    },
    {
        min: 600,
        max: 800,
        label: '￥600-800'
    },
    {
        min: 800,
        max: 1200,
        label: '￥800-1200'
    },
    {
        min: 1200,
        max: null,
        label: '￥1200以上'
    }
];

///筛选条件,天数
const sortDays = [
    // {
    //   index: 0,
    //   title: "1天",
    //   color: "#E8EDF3",
    //   start: "1",
    //   end: "1"
    // },
    {
        index: 1,
        title: '2-3天',
        color: '#ECF3ED',
        start: '2',
        end: '3'
    },
    {
        index: 2,
        title: '4-5天',
        color: '#F4F1E8',
        start: '4',
        end: '5'
    },
    {
        index: 3,
        title: '五天以上',
        color: '#F8ECED',
        start: '5',
        end: ''
    }
];
module.exports = {
    user_info_key,
    store_info_key,
    user_location_key,
    area_code_key,
    area_name_key,
    qq_map_auth_key,
    sph_id,
    app_host,
    idCardReg,
    carNumReg,
    ruzhouNumReg,
    phoneNumReg,
    debounceTime,
    notify_template_consumption,
    notify_template_recharge,
    gradeTypes,
    gradePrices,
    sortDays
};
